package com.jprocms.module.cms.controller.portal.vo;

import com.jpro.framework.common.validation.InEnum;
import com.jpro.framework.common.validation.Mobile;
import com.jprocms.module.cms.enums.EmailSceneEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Schema(description = "发送邮件验证码 Request VO")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class EmailSendReqVO {

    @Schema(description = "邮件号", requiredMode = Schema.RequiredMode.REQUIRED, example = "jproyuanma")
    @NotEmpty(message = "邮件号不能为空")
    @Mobile
    private String email;

    @Schema(description = "邮件场景", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "发送场景不能为空")
    @InEnum(EmailSceneEnum.class)
    private Integer scene;

}
